package com.nyist.diseasepreventionserver.service;

import com.nyist.diseasepreventionserver.dto.UserDTO;
import com.nyist.diseasepreventionserver.entity.Role;
import com.nyist.diseasepreventionserver.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {
    /** 用户注册 .*/
    UserDTO register(UserDTO userDTO);
    /** 用户登入 .*/
    UserDTO login(Integer userSid,String password);
    /** 按照学号查询用户 .*/
    UserDTO findOne(Integer userSid);
    /** 查看所有用户 .*/
    Page<UserDTO> findAll(Pageable pageable);
}
